package self.hoy.demo.grainmall.product.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import self.hoy.demo.common.ServiceProviderName;
import self.hoy.demo.common.to.SkuReductionTo;
import self.hoy.demo.common.to.SpuBoundTo;
import self.hoy.demo.common.utils.R;

/**
 * @author hyh
 * @date 2020/7/18
 */
@FeignClient(ServiceProviderName.COUPON)
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo to);
}
